import java.util.ArrayList;
import java.util.Scanner;

public class h_4 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.print("输入一个数子：");
        int count=sc.nextInt();
        ArrayList<Integer> yz=new ArrayList();
        int k=2;
        int num=0;
        while(count>k){
            if(count%k==0){
                yz.add(k);
                count=count/k;
            }else{
                k++;
            }
        }
        yz.add(count);
        System.out.println("因子为：");
        for (int y:yz
             ) {
            System.out.print(y+" ");
        }
    }
}
